import * as api from '.';

const loginLogApi = {

  find: async (id: string) => {
    return api.GET('/api/loginLog/find/:id', { id }, null);
  },

  query: async (username: string, createdAt: string, pageNumber: number, pageSize: number) => {
    const data = {
      username,
      createdAt,
      pageNumber,
      pageSize
    };
    return api.GET('/api/loginLog/query', null, data);
  }

};

export default loginLogApi;
